#define _CRT_SECURE_NO_WARNINGS 1
#include <vector>
#include <algorithm>
using namespace std;
class Solution {
public:
    vector<vector<int>> minimumAbsDifference(vector<int>& arr)
    {
        sort(arr.begin(), arr.end());
        int a = INT_MAX;
        vector<vector<int>> ret;
        for (int i = 1;i < arr.size();i++)
        {
            if (arr[i] - arr[i - 1] < a)
            {
                a = arr[i] - arr[i - 1];
                ret.clear();
                vector<int> v = { arr[i - 1],arr[i] };
                ret.push_back(v);
            }
            else if (arr[i] - arr[i - 1] == a)
            {
                vector<int> v = { arr[i - 1],arr[i] };
                ret.push_back(v);
            }
        }
        return ret;
    }
};